﻿using System;

namespace DflyingForum.Core.Data.Domain.ValueObjects
{
    /// <summary>
    /// 性别枚举 0->男,1->女
    /// </summary>
    public enum Gender
    {
        Male = 0, Female = 1
    }

    /// <summary>
    /// 用户状态的枚举
    /// </summary>
    public enum EnumUserState
    {
        Disabled = 0,//禁用
        Enabled = 1,//有效
        Online = 2,//在线
    }

    /// <summary>
    /// 帖子状态枚举
    /// </summary>
    public enum EnumPostState
    {
        /// <summary>
        /// 删除的 -20
        /// </summary>
        Deleted = -20,

        /// <summary>
        /// 锁定 -15
        /// </summary>
        Lock = -15,

        /// <summary>
        /// 审核未通过 -10
        /// </summary>
        RefusedApprove = -10,

        /// <summary>
        /// 审核中 -5
        /// </summary>
        BeApproved = -5,

        /// <summary>
        /// 默认的已发布(审核通过) 0
        /// </summary>
        Publish = 0,

        /// <summary>
        /// 加亮
        /// </summary>
        HighLight = 2,

        /// <summary>
        /// 自荐精华 5 
        /// </summary>
        BeingExcellent = 5,//和精华不能共存

        /// <summary>
        /// 版主推荐 15
        /// </summary>
        Recommendation = 15,

        /// <summary>
        /// 精华 20
        /// </summary>
        Excellent = 20,

        /// <summary>
        /// 分类置顶
        /// </summary>
        TopicTop = 25,


        /// <summary>
        /// 版块置顶
        /// </summary>
        ModuleTop = 30,

        /// <summary>
        /// 全局置顶
        /// </summary>
        GlobalTop = 35,

        /// <summary>
        /// 通告
        /// </summary>
        Notice = 40
    }

    /// <summary>
    /// 单元权限枚举(暂时没有涉及后台,待完善)
    /// </summary>
    public enum EnumUnitRight
    {
        /// <summary>
        /// 浏览帖子
        /// </summary>
        ViewPost = 0,

        /// <summary>
        /// 发表帖子
        /// </summary>
        PubPost = 5,

        /// <summary>
        /// 回复帖子
        /// </summary>
        ReplyPost = 10,

        /// <summary>
        /// 编辑帖子
        /// </summary>
        EditPost = 15,

        /// <summary>
        /// 删除帖子
        /// </summary>
        DeleteSelfPost = 20,

        /// <summary>
        /// 置顶帖子
        /// </summary>
        TopPost = 25,

        /// <summary>
        /// 发布通告或将帖子标记为通告
        /// </summary>
        PermitNotice = 30,

        /// <summary>
        /// 发布投票
        /// </summary>
        PubVote = 35,

        /// <summary>
        /// 允许投票
        /// </summary>
        GiveVote = 40,

        /// <summary>
        /// 管理板块
        /// </summary>
        ManageModule = 45,

        /// <summary>
        /// 上传附件
        /// </summary>
        Attachment = 50
    }

    /// <summary>
    /// 组枚举
    /// </summary>
    public enum EnumGroup
    {
        /// <summary>
        /// 所有
        /// </summary>
        Everyone = 0,

        /// <summary>
        /// 注册用户
        /// </summary>
        RegisterUser = 5,

        /// <summary>
        /// 巡警
        /// </summary>
        ModulePolice = 10,

        /// <summary>
        /// 预备版主
        /// </summary>
        ReadyModerator = 15,

        /// <summary>
        /// 版主
        /// </summary>
        Moderator = 20
    }
}
